package achievement;

public class Student extends Person{
    int no;
    double scoreEn;
    double scoreMath;
    double scoreCh;

    public double aver(){
        return (scoreCh + scoreEn + scoreMath)/3;
    }

    @Override
    public String toString() {
        return "Student{" +
                "英语成绩=" + scoreEn +
                ", 数学成绩=" + scoreMath +
                ", 语文成绩=" + scoreCh +
                ", 姓名='" + name + '\'' +
                ", 性别='" + sex + '\'' +
                ", 年龄=" + age +
                '}';
    }
}